package com.lucene;

import org.apache.lucene.document.Document;

import java.util.List;

/**
 * @Author : hebad90@163.com
 * @Date : 2015/3/18 11:05
 * @From : javalearn
 */
public class SearchResult {
    private List<Document> docs;
    private int totalHits;

    public SearchResult(int totalHits,List<Document> docs){
        this.totalHits=totalHits;
        this.docs=docs;
    }

    public List<Document> getDocs() {
        return docs;
    }

    public void setDocs(List<Document> docs) {
        this.docs = docs;
    }

    public int getTotalHits() {
        return totalHits;
    }

    public void setTotalHits(int totalHits) {
        this.totalHits = totalHits;
    }
}
